package com.magic233.service;

import com.magic233.entity.Users;

import java.util.List;

/**
 * ClassName: UsersService
 * Description:
 * date: 2021/5/29 21:14
 * author: zouyuan
 */
public interface UsersService {
    int addUser(Users user);

    int verifyId(Long id);

    int verifyPhone(String phone);

    Object login(String phone, String password);

    Users bindOpenid(Users user,String code);

    int changePassword(Users user, String code, String password);

    Users selectUser(Long id);

    int changePhone(Users user, String code, String phone);

    Long selectCount(Users user);

    int addManager(Users user, Long id,String dept);

    List<Users> selectUserByPower();

    int deleteManager(Users user, Long id);

    List<Users> selectUsersByDept(String dept);

//    int deleteUserByDept(Users user, Long id);

    List<Users> selectAllUser();

    int updatePasswordNoAuth(Long id, String password);

    Long logout(String token);

    int resetPassword(String phone, String code, String password);

    int deleteDeptUser(Users user, Long id);
}
